import React from 'react';
import {
    Button,
    View,
} from 'react-native';

/** 控件列表 */
export default class PageStorage extends React.Component {
    render() {
        return (
            <View>
                <View style={{height: 15, backgroundColor: 'white', opacity: 0.5}}/>
                <Button
                    title="react-native-storage(类似SharedPreference)"
                    onPress={() => this.props.navigation.navigate('AsyncStorageDemo')}/>

                <View style={{height: 15, backgroundColor: 'white', opacity: 0.5}}/>
                <Button
                    title="SD卡文件存储"
                    onPress={() => this.props.navigation.navigate('PageSdCardStorage')}/>
            </View>
        );
    }
}


